//
//  ActivityModel.h
//  RainbowFM
//
//  Created by chenli on 14/12/27.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseItem.h"


@interface ActivityListItem : NSObject

@property (nonatomic,strong) NSString *actId;
@property (nonatomic,strong) NSString *actName;
@property (nonatomic,strong) NSString *actStatus;
@property (nonatomic,strong) NSString *actTypeId;
@property (nonatomic,strong) NSString *content;
@property (nonatomic,strong) NSString *endTime;
@property (nonatomic,strong) NSString *pic;
@property (nonatomic,strong) NSString *signupFlag;
@property (nonatomic,strong) NSString *startTime;

-(instancetype)initWithAttributes:(NSDictionary *)attributes;
@end


@interface ActivityDetailItem : NSObject

@property (nonatomic,strong) NSString *actName;
@property (nonatomic,strong) NSString *actRule;
@property (nonatomic,strong) NSString *bannerPic;
@property (nonatomic,strong) NSString *bannerVideo;
@property (nonatomic,strong) NSString *startTime;
@property (nonatomic,strong) NSString *endTime;
@property (nonatomic,strong) NSString *isBannerPic;
@property (nonatomic,strong) NSString *isFirst;
@property (nonatomic,strong) NSString *signupFlag;
@property (nonatomic,strong) NSString *signupItem;

-(instancetype)initWithAttributes:(NSDictionary *)attributes;
@end

@interface PrizeListItem : NSObject

@property (nonatomic,strong) NSString *actId;
@property (nonatomic,strong) NSString *actStatus;
@property (nonatomic,strong) NSString *expireDt;
@property (nonatomic,strong) NSString *prizeDesc;
@property (nonatomic,strong) NSString *prizeHitRate;
@property (nonatomic,strong) NSString *prizeId;
@property (nonatomic,strong) NSString *prizeLeftNum;
@property (nonatomic,strong) NSString *prizeName;
@property (nonatomic,strong) NSString *prizeTotalNum;
@property (nonatomic,strong) NSString *prizeUrl;
@property (nonatomic,strong) NSString *qstFlag;

-(instancetype)initWithAttributes:(NSDictionary *)attributes;
@end

@interface PrizeDetailItem : NSObject

@property (nonatomic,strong) NSString *actId;
@property (nonatomic,strong) NSString *qstName;
@property (nonatomic,strong) NSString *qstId;
@property (nonatomic,strong) NSString *qstContent;
@property (nonatomic,strong) NSString *qstAnsOpt;
@property (nonatomic,strong) NSString *prizeId;
@property (nonatomic,strong) NSString *prizeName;
@property (nonatomic,strong) NSString *prizeUrl;
@property (nonatomic,strong) NSString *prizeDesc;
@property (nonatomic,strong) NSString *endDt;

-(instancetype)initWithAttributes:(NSDictionary *)attributes;
@end


@interface MyPrizeListItem : BaseItem

@property (nonatomic,strong) NSString *exchId;
@property (nonatomic,strong) NSString *prizeDesc;
@property (nonatomic,strong) NSString *prizeId;
@property (nonatomic,strong) NSString *prizeName;
@property (nonatomic,strong) NSString *prizeUrl;

@end


@interface ActivityModel : NSObject

+(instancetype)sharedModel;

-(void)fetchActivityListWithPage:(NSInteger)page result:(void(^)(BOOL success,NSArray *array))res;


-(void)fetchActivityDetailWithID:(NSString *)actiId result:(void(^)(BOOL success,ActivityDetailItem *item,NSString *msg))res;


-(void)userApplyWithActID:(NSString *)actId voteName:(NSString *)name sex:(NSString *)sex_ tel:(NSString *)tel result:(void(^)(BOOL success,NSString *msg))res;



-(void)fetchPrizeList:(void(^)(BOOL success,NSArray *array))result;

-(void)fetchMyPrizeListWithPage:(NSInteger)page result:(void(^)(BOOL success,NSArray *array))res;

-(void)fetchPrizeDetailWithActID:(NSString *)actId result:(void(^)(BOOL success,PrizeDetailItem *item))res;

-(void)fetchExchangeDetailWithExchID:(NSString *)exchId result:(void(^)(BOOL success,id item,NSString *msg))res;

-(void)submitQuestionWithActID:(NSString *)actId ansContent:(NSString *)content result:(void(^)(BOOL success,NSString *msg))res;

@end
